import logging
from multiprocessing.dummy import Pool as ThreadPool

work_ids = {i for i in range(100, 500)}
print(list(work_ids)[1])
pool = ThreadPool(2)
def p(s):
    print(s)

pool.map(p,work_ids)